package com.housekeeping.dao;

import com.housekeeping.model.User;

import java.util.List;

/**
 * 用户数据访问接口
 */
public interface UserDAO {
    
    User findByUsernameAndPassword(String username, String password);
    
    User findByUsername(String username);
    
    User findById(Integer userId);
    
    List<User> findAll();
    
    List<User> findByUserType(Integer userType);
    
    int insert(User user);
    
    int update(User user);
    
    int delete(Integer userId);
    
    long count();
} 